package cn.maxwell.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.maxwell.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {
    //店铺名称
    @Excel(name="店铺名称",orderNum = "1",width = 30)
    private String name;
    //店铺电话
    @Excel(name="店铺电话",orderNum = "2",width = 30)
    private String tel;
    //创建时间
    @Excel(name="店铺入驻时间",orderNum = "3",width = 30,exportFormat="yyyy-MM-dd")
    @JsonFormat(pattern="yy-MM-dd",timezone="GMT+8")
    private Date registerTime = new Date();
    //状态
    @Excel(name="店铺状态",orderNum = "4",width = 30)
    private Integer state = 1;
    //店铺地址
    @Excel(name="店铺地址",orderNum = "5",width = 30)
    private String address;
    //店铺logo
    @Excel(name="店铺图标",orderNum = "6",width = 100)
    private String logo;
    //店员（店长）
    @Excel(name="店员信息",orderNum = "7",width = 30)
    private Long admin_id;
    //所有员工信息用来匹配店长
    private Employee employee;
}
